package com.guangyunl.b_object;
//需求：用代码去描述一个手机类，在测试类中为手机类中的属性赋值，并且调用手机类中的功能
public class Demo02Phone {
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.brand = "华为";
        phone.color = "白色";
        phone.price = 3999;

        System.out.println("phone = " + phone.brand);
        System.out.println("phone = " + phone.color);
        System.out.println("phone = " + phone.price);


        phone.call("guangyunl");
        String mess = phone.message();
        System.out.println("mess = " + mess);
    }
}
/*
phone = 华为
phone = 白色
phone = 3999
给guangyunl打电话
mess = 给guangyunl发短信
 */